package cn.fay.chapter07;

public class Test5 {

	public static void main(String[] args) {
		new C(3);
	}
}
class A
{
	public A( int i) {
		System.out.println("A is constructed."+i);
	}
}
class B
{
	public B(int i) {
		System.out.println("B is constructed."+ i);
	}
}
class C extends A
{
	public C() {
		super(3);
	}
	public C(int i)
	{
		super(3);
		System.out.println(3+i);
	}
	B b=new B(4);
}